'''
Descripttion: 
Author: White
Date: 2024-12-30 11:36:36
LastEditTime: 2024-12-30 14:13:24
'''
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from app import app

# app = Flask(__name__)

app.config['SECRET_KEY'] = 'equipment'



# 配置数据库URI
app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql+pymysql://root:why19991009@127.0.0.1:3306/equipmentsystem'
app.config['SECRET_KEY'] = 'equipment'

app.static_folder = 'static'
# 初始化SQLAlchemy实例
db = SQLAlchemy(app)